package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user", catalog = "assistedlearning")
public class User implements java.io.Serializable {

    // Fields

    private String userid;
    private String username;
    private String password;
    private int usertype;

    // Constructors

    /** default constructor */
    public User() {
    }

    /** full constructor */
    public User(String userid, String username, String password, int usertype) {
	this.userid = userid;
	this.username = username;
	this.password = password;
	this.usertype = usertype;
    }

    // Property accessors
    @Id
    @Column(name = "userid", unique = true, nullable = false, length = 10)
    public String getUserid() {
	return this.userid;
    }

    public void setUserid(String userid) {
	this.userid = userid;
    }

    @Column(name = "username", nullable = false, length = 50)
    public String getUsername() {
	return this.username;
    }

    public void setUsername(String username) {
	this.username = username;
    }

    @Column(name = "password", nullable = false, length = 50)
    public String getPassword() {
	return this.password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    @Column(name = "usertype")
    public int getUsertype() {
	return this.usertype;
    }

    public void setUsertype(int usertype) {
	this.usertype = usertype;
    }

}